using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Metropolicity
{
    class DevelopingNode : GameObject
    {
        public int requiredPower;
        public DevelopingNode(String texturePath, Vector2 position, int requiredPower)
            : base(texturePath+requiredPower, position)
        {
            this.requiredPower = requiredPower;
        }
        public override void Draw(SpriteBatch spriteBatch)
        {
                  
            base.Draw(spriteBatch);
        }
        public void setTexture(Texture2D newTexture)
        {
            texture = newTexture;
            this.rectangle = new Rectangle(
                (int)position.X,
                (int)position.Y,
                texture.Width,
                texture.Height
                );
        }
        public virtual void Transform(int power)
        {
            requiredPower -= power;
        }
    }
}
